package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.WxIndex_VO;
import com.cskaoyan.service.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : qj
 * @since: 2022/10/14  16:20
 */
@RestController
@RequestMapping("wx/user")
public class WxUserController {
    @Autowired
    WxUserService wxUserService;
    @GetMapping("index")
    public BaseRespVo index() {
        WxIndex_VO wxIndex_vo= wxUserService.getIndex();
        return BaseRespVo.ok(wxIndex_vo,"成功");
    }
}
